package com.su.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
@TableName(value = "`role`")
public class Role {
    /**
     * 编号
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer ID;

    /**
     * 角色名称
     */
    @TableField(value = "ROLE_NAME")
    private String ROLE_NAME;

    /**
     * 角色描述
     */
    @TableField(value = "ROLE_DESC")
    private String ROLE_DESC;
    private List<User> users;
    public static final String COL_ID = "ID";

    public static final String COL_ROLE_NAME = "ROLE_NAME";

    public static final String COL_ROLE_DESC = "ROLE_DESC";
}